I've adopted the following strategy vis-a-vis link-modules and the code that determines whether a link is in that link module.
if (attrDXLName includes "Allocation") then NameLM_Desired = "Allocation_Links"
elseif(attrDXLName includes "Satisfies") then NameLM_Desired = "Tracability_Links"
elseif(attrDXLName includes "Tests") then NameLM_Desired = "Verification_Links"
else error; halt
for lnk in obj->"*" do // get all outlinks
{ NameLM_Actual = module(lnk) // base name
if (NameLM_Actual != NameLM_Desired) then continue
oTarget = target(lnk)
bufResults += info about oTarget
}
obj.attrDXLName = tempStringOf(bufResults)
I found that too difficult, since the name is a function of the name of the project, and other reasons.
llandale - Thu Mar 28 11:25:52 EDT 2013 |